/**
 * @project_namestaff_vehicle
 * @package_name com.ssh.web
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-22
 * @time 下午4:17:58
 */
package com.ssh.web;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author jack
 *
 */
public class SendMessage extends ActionSupport{

	private String mm;

	private String reason;

	private String respondentsTel;

	public final String SMS_ADDRESS = "http://hdrobot.sinaapp.com/send.php";

	private String visitorName;

	private String visitorTel;

	/**
	 * @return the mm
	 */
	public String getMm() {
		return mm;
	}

	/**
	 * @return the reason
	 */
	public String getReason() {
		return reason;
	}

	/**
	 * @return the respondentsTel
	 */
	public String getRespondentsTel() {
		return respondentsTel;
	}

	/**
	 * @return the visitorName
	 */
	public String getVisitorName() {
		return visitorName;
	}

	/**
	 * @return the visitorTel
	 */
	public String getVisitorTel() {
		return visitorTel;
	}
	/**
	 * @param mm
	 *            the mm to set
	 */
	public void setMm(String mm) {
		this.mm = mm;
	}
	/**
	 * @param reason
	 *            the reason to set
	 */
	public void setReason(String reason) {
		this.reason = reason;
	}
	/**
	 * @param respondentsTel
	 *            the respondentsTel to set
	 */
	public void setRespondentsTel(String respondentsTel) {
		this.respondentsTel = respondentsTel;
	}
	/**
	 * @param visitorName
	 *            the visitorName to set
	 */
	public void setVisitorName(String visitorName) {
		this.visitorName = visitorName;
	}
	/**
	 * @param visitorTel
	 *            the visitorTel to set
	 */
	public void setVisitorTel(String visitorTel) {
		this.visitorTel = visitorTel;
	}

	/* (non-Javadoc)
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		String msgToSend = "尊敬的客户您好： 您有新的访客\n访客姓名"+visitorName+"\n访客电话"+visitorTel+"\n其他信息"+reason;
		setMm(msgToSend);
		return "ok";
	}

}
